# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=limnoria
pkgver=20220427
_pkgver=2022-04-27
pkgrel=0
pkgdesc="A robust, full-featured, and user/programmer-friendly Python IRC bot, with many existing plugins"
url="https://limnoria.net/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cryptography"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock"
subpackages="$pkgname-doc"
source="https://github.com/progval/Limnoria/archive/refs/tags/master-$_pkgver.tar.gz"
builddir="$srcdir/Limnoria-master-$_pkgver"
options="!check" # check requires installing limnoria before testing
# https://github.com/progval/Limnoria/blob/master/.github/workflows/test.yml

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d4f617cec32ebfc67c738b542a55d2a1cd92a287a107dc84d516a1431abe0e4f440fa7b4f2a4b7fce18f24582cfdcb2ad2ed66ff2779e6a64ba7788840c1adf3  master-2022-04-27.tar.gz
"
